package org.celery.modules.order.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum PayChannelEnum {
    CASH_ON_DELIVERY("货到付款", 1),
    ;
    private String name;
    private int status;

    public static String getName(int status) {
        if (status == CASH_ON_DELIVERY.getStatus()) {
            return CASH_ON_DELIVERY.getName();
        } else {
            return "";
        }
    }

}
